<template>
  <div>
    <h1>one 儿子----{{ son }}</h1>
    <two></two>
  </div>
</template>

<script setup lang="ts">
import { inject } from 'vue';
import two from './two.vue';
// 接收provide发送的数据
let son = inject('name')
</script>

<style scoped></style>